#define _CRT_SECURE_NO_WARNINGS 
#include "SepList.h"

SL s;
void TestSLDatype()
{
	
	SLInit(&s);
	SLPushback(&s, 1);
	SLPushback(&s, 2);
	SLPushback(&s, 3);
	SLPushback(&s, 4);
	SLPushback(&s, 5);
	SLPushback(&s, 6);
	SLPushback(&s, 7);
	SLPushback(&s, 8);
	SLPushback(&s, 9);
	SLPushback(&s, 10);
	SLPrint( &s);
	SLpopback(&s);
	SLPrint(&s);
	SLPushFrond(&s, 4);
	SLPushFrond(&s, 3);
	SLPushFrond(&s, 2);
	SLPushFrond(&s, 1);
	SLPrint(&s);
	SLPopFrond(&s);
	SLPrint(&s);
	printf("%d\n", SLFind(&s, 5));
	SLInsert(&s, 3, 24);
	SLPrint(&s);
	SLErase(&s, 3);
	SLPrint(&s);
}

int main()
{
	TestSLDatype();
	return 0;
}
